Return a read-only list of organizations (OrganizationNodeReader) in the package.
Parent Type: ManifestReader
Namespace: Microsoft.LearningComponents.Manifest
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public ReadOnlyCollection<OrganizationNodeReader> Organizations { get; } |
The order of organziation nodes in this collection is the same as the order in the manifest.
Although SCORM mandates that no two organization nodes may have the same identifier in a manifest, there is not check for that when building this collection. It is up to the application to handle if multiple organizations have identical identifier attributes.
This collection is not populated until methods or properties on it are called. If during population, an organization node is encountered lacking an identifier, a warning will be added to the log if ManifestReaderSettings.FixScormRequirementViolations=true is set, or an error will be added to the log and an InvalidPackageException thrown if ManifestReaderSettings.FixScormRequirementViolations=false is set.
The absence of <organization> nodes implies this is a Resource package, instead of a Content Aggregation package.
Loop through the available organizations in the manifest.
| C# |
foreach (OrganizationNodeReader organization in manifest.Organizations)
{
// use the OrganizationNodeReader
}
|